package com.tchhy.mvplibrary.ui.fragment

/**
 * 第一次onResume的时候加载数据
 */
abstract class BaseLazyFragment2 : BaseFragment() {
    protected var isFirstOnResume = true

    abstract fun firstOnResume()

    override fun onResume() {
        super.onResume()
        if (isFirstOnResume) {
            isFirstOnResume = false
            firstOnResume()
        }
    }
}